import os
import re

SORT_REVERSE = {"升序": False, "降序": True}
SORT_VALUE = {
    "文件名称": lambda path: path,  # file_name
    "修改日期": lambda path: os.path.getmtime(path),    # file_date
    "文件大小": lambda path: os.path.getsize(path),     # file_size
    "文件数字": lambda path: int(re.search(r"\d+",os.path.basename(path)).group())     # file_number
}
FILE_TYPE = {
    "Word":".docx",
    "Excel":".xlsx"
}